package com.spboot.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author guocb
 * @since 2019-12-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("smbms_address")
public class Address implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 联系人姓名
     */
    private String contact;

    /**
     * 收货地址明细
     */
    private String addressDesc;

    /**
     * 邮编
     */
    private String postCode;

    /**
     * 联系人电话
     */
    private String tel;

    /**
     * 创建者
     */
    private Long createdBy;

    /**
     * 创建时间
     */
    private LocalDateTime creationDate;

    /**
     * 修改者
     */
    private Long modifyBy;

    /**
     * 修改时间
     */
    private LocalDateTime modifyDate;

    /**
     * 用户ID
     */
    private Long userId;


    public static final String ID = "id";

    public static final String CONTACT = "contact";

    public static final String ADDRESSDESC = "addressDesc";

    public static final String POSTCODE = "postCode";

    public static final String TEL = "tel";

    public static final String CREATEDBY = "createdBy";

    public static final String CREATIONDATE = "creationDate";

    public static final String MODIFYBY = "modifyBy";

    public static final String MODIFYDATE = "modifyDate";

    public static final String USERID = "userId";

}
